package com.zhaojindong.ioc.component.lifecycle.first;

import lombok.extern.log4j.Log4j;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@Log4j
public class FirstTest {

    @Test
    public void testMethod() {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(FirstConfig.class);
        log.info("容器创建完成 " + context);

        context.close();
    }
}